<?php if ($this->pages->pageCount > 1): ?>
<div class="paginator" style="position: relative;">
	<span style="left: 0; top: 5px; position: abLightute; border: 0;"><?php echo $this->pages->totalItemCount; ?> <?php echo $this->translate('items'); ?></span>
    <?php if (isset($this->pages->first) && $this->pages->current > 1) : ?>
    <a href="<?php echo $this->url(array('page' => $this->pages->first)); ?>"><?php echo $this->translate('First'); ?></a>
    <?php else: ?>
    <span><?php echo $this->translate('First'); ?></span>
    <?php endif; ?>
    <?php if (isset($this->pages->previous)) : ?>
    <a href="<?php echo $this->url(array('page' => $this->pages->previous)); ?>"><?php echo $this->translate('Previous'); ?></a>
    <?php else: ?>
    <span><?php echo $this->translate('Previous'); ?></span>
    <?php endif; ?>
    <?php foreach ($this->pages->pagesInRange as $page) : ?>
        <?php if ($page == $this->pages->current) : ?>
        <span><?php echo $page; ?></span>
        <?php else : ?>
        <a href="<?php echo $this->url(array('page' => $page))?>"><?php echo $page; ?></a>
        <?php endif; ?>
    <?php endforeach; ?>
    <?php if (isset($this->pages->next)) : ?>
    <a href="<?php echo $this->url(array('page' => $this->pages->next)); ?>"><?php echo $this->translate('Next'); ?></a>
    <?php else: ?>
    <span><?php echo $this->translate('Next'); ?></span>
    <?php endif; ?>
    <?php if (isset($this->pages->last) && $this->pages->current < $this->pages->lastPageInRange) : ?>
    <a href="<?php echo $this->url(array('page' => $this->pages->last)); ?>"><?php echo $this->translate('Last'); ?></a>
    <?php else: ?>
    <span><?php echo $this->translate('Last'); ?></span>
    <?php endif; ?>
</div>
<?php endif; ?>